<?php
/**
 * 全局父模板
 */
use app\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
AppAsset::register($this);
?>
<?php $this->beginPage(); ?>
    <!DOCTYPE html>
    <html>
    <head lang="<?= Yii::$app->language ?>">
        <meta charset="<?= Yii::$app->charset ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head(); ?>
        <link rel="shortcut icon" type="image/x-icon" href="<?=Url::to('@web/images/toefllogo.ico');?>" /> 
    </head>
    <body>
    <?php $this->beginBody(); ?>
    <div class="top-wrap">
        <div class="nav">
            <div class="row clearfix">
                <div class="col-xs-1 logo"><a href="<?=Url::to('@web/');?>"><img src="<?=Url::to('@web/images/logo1.png');?>" alt="logo"></a></div>
                <div class="col-xs-2 spes hidden-xs">
                    <div class="col-xs-6 spe "><a href="<?=Url::to('@web/');?>"><p>练习</p><p>Practice</p></a></div>
                    <div class="col-xs-6 spe "><a href="<?=Url::to('@web/?r=communitydiscuss/sq');?>"><p>社区</p><p>Community</p></a></div>
                </div>
                <div class="col-xs-2 pull-right login">
                    <div class="col-xs-6 log"><a href="#"><span>注册</span></a></div>
                    <div class="col-xs-6 log"><a href="<?=Url::to('@web/?r=site/login');?>"><span>登录</span></a></div>
                </div>
            </div>
        </div>
    </div>
    <div class="content">
        <?= $content ?>
    </div>
    <?php $this->endBody(); ?>
    </body>
    </html>
<?php $this->endPage(); ?>